class ConferenceValidator < ActiveModel::Validator
  def validate(record)
    if record.start_date > record.end_date
      record.errors.add(:base, ActionController::Base.helpers.t('errors.conference.start_date_greater_end_date'))
    end
  end
end
